import 'package:flutter/material.dart';
import 'package:flutter/widgets.dart';
import 'package:get/get.dart';
import 'package:pplive/models/extensions/moment_extensions.dart';
import 'package:pplive/models/moment_model.dart';

class SquareSubPage extends StatefulWidget {
  @override
  State<StatefulWidget> createState() => _SquareSubState();
}

class _SquareSubState extends State<SquareSubPage> {
   Moment model = Get.arguments as Moment;
late ThemeData theme;

  @override
  Widget build(BuildContext context) {
    theme = Theme.of(context);
    return Scaffold(
      backgroundColor: theme.colorScheme.onSurface,
        appBar: AppBar(
          title: Text("sub"),
        ),
        body: SafeArea(
            child: Container(
                color: Colors.black,
                child: Padding(
                  padding: EdgeInsets.fromLTRB(13, 0, 13, 0),
                  child: SafeArea(
                      child: model.createView()
                  ),
                ))));

  }
}
